 <!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="childrenBody">
	<form class="layui-form" style="width:80%;margin-top: 10px">
		<div class="layui-form-item layui-row layui-col-xs12">
			<label class="layui-form-label">字典标签</label>
			<div class="layui-input-block">
				<input type="text" name="dictLabel" id="dictLabel" class="layui-input dictLabel" lay-verify="required" >
			</div>
		</div>
		<div class="layui-form-item layui-row layui-col-xs12">
			<label class="layui-form-label">字典键值</label>
			<div class="layui-input-block">
				<input type="text" name="dictValue" id="dictValue" class="layui-input dictValue" lay-verify="required">
			</div>
		</div>
		<div class="layui-form-item layui-row layui-col-xs12">
			<label class="layui-form-label">字典类型</label>
			<div class="layui-input-block">
				<input type="text" name="dictType" id="dictType" class="layui-input dictType" readonly="readonly" th:value="${dictType}">
			</div>
		</div>
		<div class="layui-form-item layui-row layui-col-xs12">
			<label class="layui-form-label">样式属性</label>
			<div class="layui-input-block">
				<input type="text" name="cssClass" id="cssClass" class="layui-input cssClass"  placeholder="字典类型">
			</div>
		</div>
		<div class="layui-form-item layui-row layui-col-xs12">
			<label class="layui-form-label">字典排序</label>
			<div class="layui-input-block">
				<input type="number" name="dictSort" id="dictSort" class="layui-input dictSort" lay-verify="number" >
			</div>
		</div>
		<div class="layui-form-item layui-row layui-col-xs12">
			<label class="layui-form-label">回显样式</label>
			<div class="layui-input-block">
				<select name="listClass" class="listClass">
					<option value="">---请选择---</option>
                    <option value="default">默认</option>
                    <option value="primary">主要</option>
                    <option value="success">成功</option>
                    <option value="info">   信息</option>
                    <option value="warning">警告</option>
                    <option value="danger"> 危险</option>
	            </select>
			</div>
		</div>
		<div class="layui-form-item layui-row layui-col-xs12">
			<label class="layui-form-label">系统默认</label>
			<div class="layui-input-block">
				<input th:each="dict : ${@dict.getType('sys_yes_no')}" th:value="${dict.dictValue}" th:title="${dict.dictLabel}" type="radio" id="isDefault" name="isDefault" class="layui-input isDefault">
			</div>
		</div>
		<div class="layui-form-item layui-row layui-col-xs12">
			<label class="layui-form-label">备注</label>
			<div class="layui-input-block">
				<input type="text" id="remark" name="remark" class="layui-input remark" placeholder="请输入备注">
			</div>
		</div>
		<div class="layui-form-item layui-row layui-col-xs12">
			<label class="layui-form-label"></label>
			<div class="layui-input-block">
				<button class="layui-btn " lay-submit="" lay-filter="add">立即添加</button>
				<button type="button" class="layui-btn  layui-btn-primary close">取消</button>
			</div>
		</div>
	</form>
	<div th:include="include::footer"></div>
	<script th:src="@{/js/dict/data/add.js}"></script>
</body>
</html>